from pydantic import BaseModel, Field
from typing import Optional, List

class GenBusinessResponse(BaseModel):
    id: int
    app_name: str
    table_name: str
    doc_comment: Optional[str]
    table_comment: Optional[str]
    class_name: Optional[str]
    schema_name: Optional[str]
    filename: Optional[str]
    default_datetime_column: bool
    api_version: str
    gen_path: Optional[str]
    remark: Optional[str]

    class Config:
        from_attributes = True
